#include "CApp.h"

bool CApp::OnInit()
{
	if(SDL_Init(SDL_INIT_EVERYTHING) < 0)
	{
		return false;
	}
	if((m_SDLDisplay = SDL_SetVideoMode(600,600,32,SDL_HWSURFACE | SDL_DOUBLEBUF)) == NULL)
	{
		return false;
	}
	SDL_WM_SetCaption("PRACTICE", "PRACTICE");
	if(Entity1.OnLoad("./Resources/yoshi.bmp",64,64,8) == false)
	{
		return false;
	}
	if(Entity2.OnLoad("./Resources/yoshi.bmp",64,64,8) == false)
	{
		return false;
	}
	
	Entity2.X = 100;

	CEntity::EntityList.push_back(&Entity1);		
	CEntity::EntityList.push_back(&Entity2);

	CSurface::Transparent(m_Yoshi, 255, 0, 255);
	return true;
}